checkCreatorURLAvailable
Check Creator Url Available
TODO
/api/acp/v2/creator/urlname/availability
Usage and SDK Samples
curl -X GET\
\
-H "Accept: application/json"\
"https://www.floatplane.com/api/acp/v2/creator/urlname/availability"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ACPCreatorApi;
import java.io.File;
import java.util.*;
public class ACPCreatorApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: CookieAuth
ApiKeyAuth CookieAuth = (ApiKeyAuth) defaultClient.getAuthentication("CookieAuth");
CookieAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
ACPCreatorApi apiInstance = new ACPCreatorApi();
try {
oas_any_type_not_mapped result = apiInstance.checkCreatorURLAvailable();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ACPCreatorApi#checkCreatorURLAvailable");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.ACPCreatorApi;
public class ACPCreatorApiExample {
public static void main(String[] args) {
ACPCreatorApi apiInstance = new ACPCreatorApi();
try {
oas_any_type_not_mapped result = apiInstance.checkCreatorURLAvailable();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ACPCreatorApi#checkCreatorURLAvailable");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: CookieAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"sails.sid"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"sails.sid"];
// Create an instance of the API class
ACPCreatorApi *apiInstance = [[ACPCreatorApi alloc] init];
// Check Creator Url Available
[apiInstance checkCreatorURLAvailableWithCompletionHandler:
^(oas_any_type_not_mapped output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var FloatplaneApi = require('floatplane_api');
var defaultClient = FloatplaneApi.ApiClient.instance;
// Configure API key authorization: CookieAuth
var CookieAuth = defaultClient.authentications['CookieAuth'];
CookieAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.apiKeyPrefix['sails.sid'] = "Token";
// Create an instance of the API class
var api = new FloatplaneApi.ACPCreatorApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.checkCreatorURLAvailable(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class checkCreatorURLAvailableExample
{
public void main()
{
// Configure API key authorization: CookieAuth
Configuration.Default.ApiKey.Add("sails.sid", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("sails.sid", "Bearer");
// Create an instance of the API class
var apiInstance = new ACPCreatorApi();
try {
// Check Creator Url Available
oas_any_type_not_mapped result = apiInstance.checkCreatorURLAvailable();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ACPCreatorApi.checkCreatorURLAvailable: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('sails.sid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('sails.sid', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ACPCreatorApi();
try {
$result = $api_instance->checkCreatorURLAvailable();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ACPCreatorApi->checkCreatorURLAvailable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ACPCreatorApi;
# Configure API key authorization: CookieAuth
$WWW::OPenAPIClient::Configuration::api_key->{'sails.sid'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'sails.sid'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ACPCreatorApi->new();
eval {
my $result = $api_instance->checkCreatorURLAvailable();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ACPCreatorApi->checkCreatorURLAvailable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: CookieAuth
openapi_client.configuration.api_key['sails.sid'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['sails.sid'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.ACPCreatorApi()
try:
# Check Creator Url Available
api_response = api_instance.check_creator_url_available()
pprint(api_response)
except ApiException as e:
print("Exception when calling ACPCreatorApi->checkCreatorURLAvailable: %s\n" % e)
extern crate ACPCreatorApi;
pub fn main() {
let mut context = ACPCreatorApi::Context::default();
let result = client.checkCreatorURLAvailable(&context).wait();
println!("{:?}", result);
}